package com.xucan.pdf;

public class MClient {
    public static void main(String[] args) throws Exception{
        // 原始价格
        double originalPrice = 100.0;
        OrderDiscountInfo normalDiscountInfo = new OrderDiscountInfo();
        // 设置为普通会员
        normalDiscountInfo.setUserType(BusinessEnum.NORMAL.getCode());
        normalDiscountInfo.setOriginalPrice(originalPrice);
        double normalDiscountPrice = AdvanceDiscountContext.getInstance().applyDiscount(normalDiscountInfo.getUserType(), normalDiscountInfo.getOriginalPrice());
        System.out.println("普通会员折扣价：" + normalDiscountPrice);
    }
}
